home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Utilities / SuperDuper! 1.5.5.dmg / SuperDuper!.app / Contents / Resources / Transcripts / RestoreTranscript.plist < prev    next >
Encoding:
Extensible Markup Language  |  2005-04-06  |  7.5 KB  |  137 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3. <plist version="1.0">
  4. <dict>
  5.     <key>Type</key>
  6.         <string>Restore</string>
  7.     <key>PhaseList</key>
  8.     <array>
  9.         <dict>
  10.             <key>Phase</key>
  11.             <string>System Files</string>
  12.             <key>ActionList</key>
  13.             <array>
  14.                 <dict>
  15.                     <key>Action</key>
  16.                     <string></string>
  17.                     <key>infoMsg</key>
  18.                     <string>Restore "SDTargetVolume.Name" using image "SDSourceVolume.Name"</string>
  19.                     <key>CommandList</key>
  20.                     <array>
  21.                         <dict>
  22.                             <key>command</key>
  23.                             <string>JNLD=$(diskutil info SDTargetVolumeMount.'Path | grep  -q -F Journaled; echo $?); asr -source SDASRimage.'Path -target SDTargetVolumeMount.'Path -erase -noprompt SDSkipVerify; if [ $JNLD -eq 0 ]; then diskutil enableJournal SDTargetVolume.Device; fi</string>
  24.                             <key>infoMsg</key>
  25.                             <string>Restoring SDSourceVolume.Name to SDTargetVolume.Name</string>
  26.                             <key>parseMethod</key>
  27.                             <string>asrRestore:</string>
  28.                         </dict>
  29.                         <dict>
  30.                             <key>command</key>
  31.                             <string>SDdiskTool.'Path -s SDUUID.hexString SDTargetVolumeMount.'Path</string>
  32.                             <key>infoMsg</key>
  33.                             <string>Restoring SDTargetVolume.Name UUID (SDUUID.hexString)</string>
  34.                             <key>parseMethod</key>
  35.                             <string>indeterminate:</string>
  36.                         </dict>
  37.                         <dict>
  38.                             <key>command</key>
  39.                             <string>disktool -r; vsdbutil -a "`diskutil info "SDTargetVolume.Device" | awk -F : '/Mount Point/ {print $2}' | cut -c 9-`"</string>
  40.                             <key>infoMsg</key>
  41.                             <string>Enabling permissions on SDTargetVolume.Name</string>
  42.                         </dict>
  43.                         <dict>
  44.                             <key>command</key>
  45.                             <string>vsdbutil -c "`diskutil info "SDTargetVolume.Device" | awk -F : '/Mount Point/ {print $2}' | cut -c 9-`" | grep -i "enabled"; if [ "$?" == "1" ]; then echo "Could not disabled Ignore Permissions for " SDTargetVolume.'Name >&2; exit 2; fi </string>
  46.                             <key>infoMsg</key>
  47.                             <string>Verifying that permissions are enabled for SDTargetVolume.Name</string>
  48.                         </dict>
  49.                     </array>
  50.                 </dict>
  51.             </array>
  52.         </dict>
  53.          <dict>
  54.             <key>Phase</key>
  55.             <string>Conclude Target Setup</string>
  56.             <key>ActionList</key>
  57.             <array>
  58.                 <dict>
  59.                     <key>Action</key>
  60.                 <string></string>
  61.                 <key>infoMsg</key>
  62.                     <string>Bless System on SDTargetVolume.Name</string>
  63.                     <key>CommandList</key>
  64.                     <array>
  65.                         <dict>
  66.                             <key>command</key>
  67.                         <string>eval MP=$(SDdiskTool.'Path -m SDTargetVolume.Device); if [ -a "${MP}"/System/Library/CoreServices ]; then UCHGSET=$(ls -lo "${MP}"/System/Library/CoreServices/BootX | grep -vqF uchg; echo $?); chflags nouchg "${MP}"/System/Library/CoreServices/BootX; bless -folder "${MP}"/System/Library/CoreServices -bootinfo "${MP}"/usr/standalone/ppc/bootx.bootinfo -save9; if [ $UCHGSET -eq 1 ]; then chflags uchg "${MP}"/System/Library/CoreServices/BootX; fi; echo "Successfully blessed Mac OS X folder on `basename \"${MP}\"`"; else echo "Did not bless Mac OS X System Folder on `basename \"${MP}\"` because it does not exist."; fi</string>
  68.                             <key>infoMsg</key>
  69.                             <string>Blessing OS X System Folder</string>
  70.                         </dict>
  71.                         <dict>
  72.                             <key>command</key>
  73.                             <string>VOLUME=$(diskutil info "SDTargetVolume.Device" | awk -F : '/Mount Point/ {print $2}' | cut -c 9-); if [ -a "${VOLUME}/System Folder" ]; then bless -folder9 "${VOLUME}/System Folder" -saveX; echo "Successfully blessed Mac OS 9 System Folder on `basename ${VOLUME}`"; else echo "Did not bless Mac OS 9 System Folder on `basename ${VOLUME}` because it does not exist."; fi</string>
  74.                             <key>infoMsg</key>
  75.                             <string>Blessing OS 9 System Folder</string>
  76.                         </dict>
  77.                     </array>
  78.                 </dict>
  79.                 <dict>
  80.                     <key>Action</key>
  81.             <string>shouldInstallPackage</string>
  82.             <key>infoMsg</key>
  83.                     <string>Install Package _SDInstallerPackage.Path</string>
  84.                     <key>CommandList</key>
  85.                     <array>
  86.                         <dict>
  87.                             <key>command</key>
  88.                             <string>installer -verboseR -dumplog -pkg _SDInstallerPackage.'Path -target "`diskutil info "SDTargetVolume.Device" | awk -F : '/Mount Point/ {print $2}' | cut -c 9-`" >&1 2>&1</string>
  89.                             <key>infoMsg</key>
  90.                             <string>Installing _SDInstallerPackage.Path on SDTargetVolume.Name</string>
  91.                             <key>parseMethod</key>
  92.                             <string>installPackage:</string>
  93.                           </dict>
  94.                       </array>
  95.                   </dict>    
  96.                   <dict>
  97.                 <key>Action</key>
  98.                 <string>shouldInvokeSiteCustomizationScript</string>
  99.                 <key>infoMsg</key>
  100.                     <string>Execute Site Customization Script _SDSiteCustomizationScript.Path</string>
  101.                     <key>CommandList</key>
  102.                     <array>
  103.                         <dict>
  104.                              <key>command</key>
  105.                              <string>_SDSiteCustomizationScript.'Path SDSourceVolume.'Name SDSourceVolume.'Name "`basename "\`diskutil info "SDTargetVolume.Device" | awk -F : '/Mount Point/ {print $2}' | cut -c 9-\`"`" SDTargetVolumeMount.'Path _SDSiteCustomizationScript.'Path SDASRimage.'Path</string>
  106.                              <key>infoMsg</key>
  107.                              <string>Invoking site customization script: _SDSiteCustomizationScript.Path</string>
  108.                         </dict>
  109.                     </array>
  110.                 </dict>
  111.                 <dict>
  112.                        <key>Action</key>
  113.             <string>shouldRebootFromTarget</string>
  114.             <key>infoMsg</key>
  115.                     <string>Reboot from SDTargetVolume.Name</string>
  116.                     <key>CommandList</key>
  117.                     <array>
  118.                         <dict>
  119.                             <key>command</key>
  120.                         <string>eval MP=$(SDdiskTool.'Path -m SDTargetVolume.Device); if [ -a "${MP}"/System/Library/CoreServices ]; then UCHGSET=$(ls -lo "${MP}"/System/Library/CoreServices/BootX | grep -vqF uchg; echo $?); chflags nouchg "${MP}"/System/Library/CoreServices/BootX; bless -folder "${MP}"/System/Library/CoreServices -bootinfo "${MP}"/usr/standalone/ppc/bootx.bootinfo -save9 -setOF; if [ $UCHGSET -eq 1 ]; then chflags uchg "${MP}"/System/Library/CoreServices/BootX; fi; echo "Successfully set `basename \"${MP}\"` as startup disk"; else echo "Could not set startup disk to `basename \"${MP}\"` because it does not contain a valid Mac OS X System Folder."; exit 1; fi</string>
  121.                             <key>infoMsg</key>
  122.                             <string>Setting startup disk to SDTargetVolume.Name</string>
  123.                         </dict>
  124.                         <dict>
  125.                             <key>command</key>
  126.                             <string>osascript -e 'Tell application "System Events" to restart' &</string>
  127.                             <key>infoMsg</key>
  128.                             <string>Restarting Computer</string>
  129.                         </dict>
  130.                        </array>
  131.                    </dict>
  132.             </array>
  133.         </dict>
  134.     </array>
  135. </dict>
  136. </plist>
  137.